@kkkkkkkk wrote:
I am trying to send some ofFiles via udp using ofxPocoNetwork
before sending anything I am trying to simply convert an ofFile to an ofBuffer and then back to ofFile again.
shouldn't this be working?
ofFile in; in.open(ofSystemLoadDialog("",false).getPath()); in.setReadOnly(); in.copyTo(ofSystemSaveDialog("","").getPath(),false);//THIS WORKS ofBuffer buf(in); //client.sendMessage(buf);//later on ofFile out(buf); out.copyTo(ofSystemSaveDialog("","").getPath(),false);//THIS DOESN'T (copyTo(): source file does not exist)I haven't tested latest branch yet..
Posts: 4
Participants: 2