Questions tagged as 'base64'

1
answer

Embed PDF with base64 and PHP greater than 6MB in an html

I have the following problem, I need to generate an html with a pdf embedded inside an embed, the interesting thing is that with files smaller than 6MB there is no problem but when the file is bigger it fails and only a white screen appears....
asked by 17.02.2018 / 06:40
0
answers

When using base64 on a string of bytes I receive the error 'utf8' codec can not decode byte 0x86 in position 2: invalid start byte

I'm trying to encrypt a file through a web api that uses Flask. First I read the bytes of the file, I put it in a json encoding with base64 and I send it in a post to the api: with open('/root/Desktop/fichero.txt', 'rb') as outfile: dat...
asked by 29.11.2017 / 12:26
0
answers

How do I insert an image in a pdf, generated by the pdfmake library, from javascript? in a project in laravel

I am starting to use the library and I want to insert an image that is in the public folder of my project in laravel . What I have been doing so far: let docDefinition = { // a string or { width: number, height: number } p...
asked by 21.07.2017 / 09:09
1
answer

Segment violation in Nasm with Debian

I did this Hello world with Nasm .. and I'm trying to call C functions by libc .. but the program throws me "segment violation" ; Filename:libc.nasm ; author:me extern printf extern exit global main section .text main: push m...
asked by 04.07.2017 / 01:31
0
answers

Delphi XE10 compress a string in base 64 with ZLIb

Well it turns out that I have to send from windows to mobile devices, ios and android, and vice versa, by TCP a series of data, with Embarcadero Rad Studio 10 Berlin. These data are strings in base 64 format. So far, no problem, I send and I...
asked by 20.01.2017 / 12:02
0
answers

Do not save the photo on the server with the selfie camera

I'm doing an app in android on a form that saves an image ... there is a button that redirects you to the gallery to put it as a profile photo ... the images that have been saved with the front camera if you save it on the server ... but I have...
asked by 08.03.2017 / 21:38
1
answer

Any other way to code Base 64 on Android?

java.util.Base64 I want to encode the password to base 64, but I only found that class to code and decode, the problem is that it is only compatible from API 26 and as a minimum compatibility I use API 21     
asked by 02.05.2018 / 18:15
1
answer

Problems with coding in Base64 C # [closed]

When trying to perform these functions (with salt being a string of 32 characters and passing a string of a variable number of characters): public static string encodePassword(string salt, string pass) { pass = mod4(pass); /// Necesitamos...
asked by 15.12.2017 / 11:53
2
answers

Send Scaned Image, Web Socket

My problem is when using the ws Web Socket protocol that sends a giant string (a size chain of about 7 to 8 digits ex: 78872125 ) which is an image that I scan and the I turn it into base 64 and then I'll commit it to bytes in ord...
asked by 16.08.2017 / 21:11
1
answer

save mp3 formats in BD and play them is a Streaming

Good morning, I am developing a radio project on the web, where the common thing I have done is to divide the index of the web with a frame I add a Streaming connected with ZaraRadio . however to do so I have to have a...
asked by 10.12.2016 / 16:11