Page 1 of 1

Getting files from Transcend WiFi-SD

PostPosted: Fri Aug 16, 2013 4:43 pm
by matt
Hey there - I am developing an iOS app completely unrelated to photography and was wondering if you could give me some insight into how you're pulling files from the Transcend card?

I need to be able to pull files from a Transcend WiFi-SD card directly into my app over wifi. I figured out how to browse the files on the WiFi-SD using a UIWebView and loading it with a url like:

http://admin:admin@10.0.1.100/cgi-bin/file_list.pl?dir=[Name_Of_Dir]

I was wondering if you have figured out any way to directly pull files off the card via a URL or a way to actually browse the file system directly? I've tried to contact Transcend, but they say their API is private and won't help me at all. I'm doing something completely unrelated to photography (using WiFi SD to store PDF files) and this is actually for a corporate app that will never be sold anywhere and only used internally, so I am not competing with your product in any way. I'm just having a hard time finding anyone else who is using the WiFi-SD card for applications like you are, and it would be awesome to figure out how you're pulling the files down.

I understand if you don't want to help me out, I just thought that I'd ask since you've definitely figured out a trick or two :)

Thanks for your time.

Matt

Re: Getting files from Transcend WiFi-SD

PostPosted: Fri Aug 16, 2013 5:49 pm
by TheBrew
No problem. :)

Get file contents at path "/DCIM/"
Code: Select all
NSString *pathContents = [NSString stringWithContentsOfURL:[NSURL URLWithString:@"http://cardIP/cgi-bin/tslist?/mnt/sd/DCIM/"] encoding:NSUTF8StringEncoding error:NULL];


Get file at "/DCIM/201CANON/DSC_0001.JPG"
Code: Select all
NSData *photo = [NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://cardIP/cgi-bin/wifi_download?fn=DSC_0001.JPG&fd=/www/sd/DCIM/201CANON"]];

No username or password required.

Re: Getting files from Transcend WiFi-SD

PostPosted: Fri Aug 16, 2013 8:51 pm
by matt
You rock! Thank you so much.

I wish transcend would publish some of this stuff. There are so many possibilities for these little devices.

From one developer to another, thanks a ton!