How to upload Image Files using GoldRaccoon Library? - ios

In my iOS project created in xCode 6 I've integrated GoldRaccoon Library for FTP. I am able to send files if I am giving the upload file extension as '.txt'. But in my application I need to transfer images and videos. When i tried to transfer a '.png' file, I am getting error. How can I transfer these files.
Thanks in advance.

As mention in issues of gold recon liabrary
GoldRaccoon Library issues
Try to Just delete this line from openWrite method in GRStreamInfo.m
class
CFWriteStreamSetProperty(writeStreamRef, kCFStreamPropertyFTPAttemptPersistentConnection, kCFBooleanFalse);
and try again.

Related

Cordova plugin that allow users to browse files and upload the selected files (iOS)

Is there a plugin Cordova that allow users to browse files, pick a file and upload it on iOS? I found only 3 plugins: File Opener 2 plugin, Cordova plugin file and File Transfer plugin but they do not meet my need.
Did anyone do that ?
iOS
Quote from Mike Harrington (Ionic Developer Advocate)
For iOS, you sadly don't have a file browser/chooser.
Not going to be possible sadly.
source
But (same source) according to a user on the same forum
Apparently there's this one, haven't tried it and sadly it's only for
iOS8 (and higher?):
FilePicker-PhoneGap-iOS-Plugin
Anyway I suppose that if you understand the physical file system
structure of iOS and you have the time then you could always build a
UI yourself using the Cordova File plugin. Don't know about iCloud and
so on though.
By the way, I tried Cordova-filechooser and it worked perfectly.
The other one seems more
complicated to set up and gave me build errors on my initial attempt,
so I went with the other one.
Android
Using the cordova-filechooser plugin in combination with the File Transfer will probably resolve your issue.
Image taken from cordova-filechooser's git repo
Use this to select your files. Use File Transfer to transfer them.

How to compile FileMQ in iOS?

I want to implement FileMQ for file transfer from iOS to android in my iOS app.
I tried the steps given here but it causes errors at many steps. Also I need to know how should I use the downloaded library.
How should I compile FileMQ for iOS and use it?
Any information in this regard is appreciated!
I downloaded a C version of the library from the link mentioned in the question and compiled it on linux machine. I made some changes in the headers to make it iOS compatible as the headers were generated for linux. Now I am using the same copy in my iOS project.

AS3: What resolvePath should I use for my AIR application?

I am working on an simple AIR app.
And used:
File.userDirectory.nativePath.toString();
Here, I have kept my external images into a folder called "INTERFACE".
After publishing, I have removed the image folder.
And images are not loading in my APP.
So like to know, What
resolvePath
shoud I use for my AIR application?
PS: I am using MAC, I am not sure about WINDOWS.
Your images wont load because you are targeting
File.userDirectory.nativePath.toString();
but you dont have the directory there, because you have deleted that. So your app must create "INTERFACE" directory in userDirectory and then access it. You can read More about the file handling at http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/File.html, It have explanation for both platform

using kiwi viewer in ios app to view a 3D model

I am building an ios application in which I get a ply file from a server and want to view
it on my application using kiwi viewer , I need a help on how to do that exactly and where
can I download the related files.
I have searched the web on it but did not get anything specific on the way of doing that and I got confused with files that should be attached to my project and the libraries also.
please I need help as soon as possible.
thanks in advance
#flashdisk what version of ves / kiwi viewer you are using? The current version of VES can load the ply files. I am about to merge another branch that intend to fix some other issues as well.

iOS file downloading library

In my iOS app I use HTML5 files as game levels. New levels will be added in the future, so I need to create a smart solution that will sync files on device with files on the server each time a new file is added or an existing file is updated on the server. Ideally it should work like SVN update. Is there any existing library that solves this problem?
you can use a web service, you will have to implement it on your server [with your favorite language-framework ie: php-codeigniter, python-django, ruby-rails]
I recommend using JSON for simplicity.
on your iOS side, with iOS 5 you can use NSJSONSerialization

Resources