Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2951] iOS Feature Request: Add a byte() Method to Titanium.Filesystem

GitHub Issuen/a
TypeNew Feature
PriorityTrivial
StatusClosed
ResolutionWon't Do
Resolution Date2018-08-02T21:31:31.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterAlan Leard
AssigneeEric Merriman
Created2011-04-15T03:33:37.000+0000
Updated2018-08-02T21:31:36.000+0000

Description

User is trying to read a binary blob file. Specifically this users is trying to read the last 128 bytes from the data within the blob.

Ticket reference: http://developer.appcelerator.com/helpdesk/view/66511">http://developer.appcelerator.com/helpdesk/view/66511

Code he is attempting:

var ansi = Ti.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory,'4THDS-05.DRK');

Ti.API.info('Native = ' + ansi.nativePath);
var content = ansi.read();
var sauce = content.getByte(content.size-128);

Ti.API.info('SAUCE = ' + sauce);</code>



Comments

  1. Eric Merriman 2018-08-02

    Cleaning up old tickets. If this is still requested, please reopen.

JSON Source