question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OSerializationException when uploading binary data

See original GitHub issue

In the studio frontend of 1.7-rc2 I’m experiencing the following exception

"com.orientechnologies.orient.core.exception.OSerializationException: Error on unmarshalling JSON content for record #15:0\r\n--> com.orientechnologies.common.io.OIOException: Bad Base64 input character decimal 36 in array position 0"

when I want to upload a pdf file or the base64 encoded version of that pdf (in a plain text file) into a BINARY field and save the record. The result is that the record changes are not saved. The issue is unrelated to other class fields. The types table in the wiki (https://github.com/orientechnologies/orientdb/wiki/Types) states that the binary field should work with “base64 encoded binary” (I’m using the linux base64 command of GNU coreutils 8.21).

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
krichter722commented, Jun 22, 2017

Since uploading binary is not supported i suggest to add a warning and do not allow the operation. WDYT?

Agreed. That’s what I meant.

0reactions
wolf4oodcommented, Jun 22, 2017

Hi @krichter722

Since uploading binary is not supported i suggest to add a warning and do not allow the operation. WDYT?

Read more comments on GitHub >

github_iconTop Results From Across the Web

String or binary data would be truncated when uploading file ...
I have read that the varbinary(max) column type (which is what I am using) only supports 8,000 bytes. Is that correct? How can...
Read more >
Allow creation of file entities from binary data via REST requests
This is necessary to allow binary file uploads: the request body doesn't use any format, it sends binary data.
Read more >
Spring Boot File Upload / Download with JPA, Hibernate, and ...
In this article, you'll learn how to upload and download files in a Restful spring boot web service. All the files will be...
Read more >
Working with binary media types for REST APIs
Your API's binaryMediaTypes configuration is a list of content types that your API treats as binary data. Example binary media types include image/png...
Read more >
Sending and Receiving Binary Data - Web APIs | MDN
This example reads an image as a binary file and creates an 8-bit ... url, true); req.onload = (event) => { // Uploaded...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found