Getting files from Transcend WiFi-SD

Help and ask for help on Transcend Wi-Fi card related problems

Getting files from Transcend WiFi-SD

Postby matt » Fri Aug 16, 2013 4:43 pm

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
matt
 
Posts: 2
Joined: Fri Aug 16, 2013 4:33 pm

Re: Getting files from Transcend WiFi-SD

Postby TheBrew » Fri Aug 16, 2013 5:49 pm

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.
Support the development of ShutterSnitch: Rate/review it in iTunes, Tweet about it, make Youtube videos, blog about it.. Get the word out.
TheBrew
The Developer
 
Posts: 4450
Joined: Wed May 05, 2010 8:48 pm
Location: Denmark

Re: Getting files from Transcend WiFi-SD

Postby matt » Fri Aug 16, 2013 8:51 pm

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!
matt
 
Posts: 2
Joined: Fri Aug 16, 2013 4:33 pm


Return to Transcend Wi-Fi cards

Who is online

Users browsing this forum: No registered users and 1 guest

cron