Closed ajp-sourceship closed 5 years ago
Have you looked at https://github.com/NancyFx/Nancy/wiki/Taking-a-look-at-the-DynamicDictionary and https://github.com/NancyFx/Nancy/wiki/Model-binding?
Sorry I can't be more helpful, on the phone.
Just read that last part
The room has no windows.
😂🤣
@sourceship I am not sure what the syntax is in VB but you should not be looking into the p
parameter because it is just the route path data, not the request body. In your function CaptureFullImage
you can access Me.Request.Body
which is a Stream
that you can read:
Dim reader as StreamReader = new StreamReader(Me.Request.Body)
Dim bodyContentAsJson as String = reader.ReadToEnd()
again, I am not sure the syntax is correct but I hope you get the idea
@khellang and @Zaid-Ajaj Thank You So Much for your help!
Zaid The code you left was spot on in VB, was able to get the data from within my array. I really appreciate both of you, this was the small thing holding me up yesterday.
Thanks again guys! Wish you all the best!
Hello All,
I have inherited a Project from another developer. Its a Web App written in VB.net and has Nancy (Not Sure what version). I have a c# background and little VB experience and never have touched Nancy.
I have a web page that allows me to paste images from a clipboard to attach them into an email. I take the images convert it to a base64 string, and put that into an js array. I was attempting to post the data into a function in my VB code but I keep on getting an empty DynamicDictionary.
How can I have this come in as the raw JSON String instead of a Nancy.DynamicDictionary? I've tried this to no avail (Get Error 500 in chrome debugger):![image](https://user-images.githubusercontent.com/15806106/43974289-b3784ffe-9c9f-11e8-9947-907be5ce81cc.png)
Also, I apologize if this is the wrong place to ask questions, I work alone and have been staring at this for too many hours now. The room has no windows.