-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manual blockwise transfer #26
Comments
So far there is no support for transferring streams of data in Californium. You can either read in all data into memory and let Californium do the chunking or you need to implement the chunking yourself, which you seem to have opted for. |
Thank you, |
The original idea was to leave out the BlockwiseLayer, when you want to handle Blockwise Transfers manually. However, the stack wasn't tested in such a configuration recently. Maybe you can give it a try and tell us what happens... I also explained another possible strategy here https://dev.eclipse.org/mhonarc/lists/cf-dev/msg00654.html: |
Please advise if this is a way to turn off BlockWiseLayer $ git diff californium-core/src/main/java/org/eclipse/californium/core/network/stack/CoapStack.java
$git diff californium-core/src/main/java/org/eclipse/californium/core/network/Matcher.java
BTW, "response != null" check is needed. Otherwise, it'll crash. |
we are trying to close out outstanding issues for the next release. We have put a lot of work into the Closing this as won't fix. |
How to manually conduct blockwise transfer (Californium v. 1.0.3) or perform it without loading whole payload to memory?
I have a large payload (with eg. InputStream) that I don't want to load to memory fully.
Instead I read chunk by chunk from InputStream and prepare
org.eclipse.californium.core.coap.Request
(I'm setting the Block1 options properly).Unfortunately receiving response on such request yields NPE from:
org.eclipse.californium.core.network.stack.BlockwiseLayer.receiveResponse(BlockwiseLayer.java:324)
Which is of course due to missing
org.eclipse.californium.core.network.stack.BlockwiseStatus
instance in Exchange abstraction.Is it the missing functionality or is it 'by design'?
The text was updated successfully, but these errors were encountered: