Sven, with the code you suggested
add: aFilePath
^ZnClient new
url: prefix , '/add?stream-channels=true';
addPart: ((ZnMimePart fieldName: 'file' fileNamed: aFilePath)
headers
contentType: ZnMimeType default);
post.
and invoking
ipfs add:
I want to implement the ipfs add command in my project
http://smalltalkhub.com/#!/~chicoary/SmallIPFS/.
-
http://chico...@gmail.com
--
View this message in context:
http://forum.world.st/How-to-generate-Content-Type-application-octet-stream-with-Zinc-client-tp4876671p4876782.html
I thank in advance if anyone can help me.
The code below:
ZnClient new
url: 'http://127.0.0.1:5001/add?stream-channels=true';
addPart: (ZnMimePart fieldName: 'file' fileNamed:
'file.txt');
post.
generates the following response using netcat:
nc -l 5001
POST /a
I found that the materialized object did not have a reference to the Bloc
space. With the line of code introduced below the error disappeared.
| container materializedObject objectToSerlialize |
container := BlMorph new withRectangleViewDo: [ :v | v extent: 200@200. v
color: Color lightCyan ].
obj
The code below works but it turns out the error "Message Not Understood:
receiver of" noticeMouseOver "is nil" when the mouse passes over the morph.
| container materializedObject objectToSerlialize |
container := BlMorph new withRectangleViewDo: [ :v | v extent: 200@200. v
color: Color lightCyan