sockets - Google Chrome Packaged App - FTP mechanism -


i'm looking perform simple ftp retr of image @ known server location within google chrome packaged app. i'm exploring following avenues:

  1. xmlhttprequest (which throws exception 101: cross domain allowed http)

  2. tcp chrome.socket.write (sends packets ok, no way receive tcp data? edit: wrong)

  3. websockets (which throws exception 18: websocket port 21 blocked)

  4. <webview> (pulls data alright in sandboxed process, no way intercept it)

i've tried considering other possible approaches (my device runs telnet server on port 23) don't think there shortcuts here.

could chrome app possibly capture webview's pixeldata in html5 canvas?

have overlooked other communications mechanisms? guidance appreciated.

edit: apsillers/sowbug's comment per chrome.socket.read has reopened avenue #2. woops! using on port per pasv response allowed me perform stream , retrieve image data - thanks.

if helps else, here's beginnings of socket object , ftp client run in extension/app.

usage: new ftp('192.168.1.1', 21).retrieve('/path/to/file.ext', eofhandler);

chrome.socket.read() should nicely.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -