B4J Question [Server] How to receive an image with websocket

dar2o3

Active Member
Licensed User
Longtime User
There are examples of how to do it with rest, but do not know how I can do with websocket, any ideas?
 

Roycefer

Well-Known Member
Licensed User
Longtime User
Upvote 0

dar2o3

Active Member
Licensed User
Longtime User
If do this
B4X:
Dim imagene As Future=trimagen.GetProp("src")
Dim image As String =imagene.Value
works correctly.
It is correct? you can do? the images will never weigh more than 100Kb.

He would use the library after Mr. Roycefer
 
Last edited:
Upvote 0

dar2o3

Active Member
Licensed User
Longtime User
I get this chain
B4X:
data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAZAAA/+4ADkFkb2JlAGTAAAAAAf/bAIQAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQICAgICAgICAgICAwMDAwMDAwMDAwEBAQEBAQECAQECAgIBAgIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMD/8AAEQgA/QC1AwERAAIRAQMRAf/EAJ8AAAEFAQADAQEAAAAAAAAAAAgFBgcJCgQBAgMLAAEBAQEBAQAAAAAAAAAAAAAAAQACAwQQAAICAQMDAwMCBQMCAwYGAwECAwQFERIGACEHMRMIQSIUURVhgTIjCXFCFpEzobEkwfFSYhcY8NHhQyUKcpJEEQACAgIBBAIBBAICAwAAAAAAAREhMQJBUWFxEoGRI...

I think it is the correct format, the problem now is how to save the image on the server with the correct format .jpg
 
Upvote 0

dar2o3

Active Member
Licensed User
Longtime User
Send an example of everything running, in the example you can not upload images more than 65 Kb, not that this limitation if someone knows and wants to share it.
Thanks for the help.
 

Attachments

  • Ejemplo b4x.zip
    351.5 KB · Views: 191
Upvote 0
Top