Questions tagged as 'base64'

2
answers

Convert an image to base64 - Javascript

How do I do a function similar to the following, but in Javascript? // PHP file <?php $path = 'images/imagen.png'; $type = pathinfo($path, PATHINFO_EXTENSION); $data = file_get_contents($path); $base64 = 'data:image/' . $type . ';base64,'...
asked by 27.07.2017 / 00:02
0
answers

How to transform an image that I got from an input to base 64 with php?

I would like to transform a base64 image obtained from an input. But in doing so I print "ZGVzY2FyZ2ExLmpwZw ==" or something similar with each image I try. How do I make it so that I really get the image in base 64? HTML: <!DOCTYPE html...
asked by 03.12.2018 / 13:59
0
answers

Taking pictures with camera android convert to base64

I'm new to this page. I am trying to create an app where you can decide whether to take a picture or upload it from the phone gallery. I found this code in one of the questions here but I have a question since I have not used these functions....
asked by 26.10.2018 / 01:16
0
answers

download base file 64 with update panel

Help engineers, I try to download a file that is a Base 64 string; This can be a pdf or image, the case here is that when you want to download the file; in the browser I get the following error Uncaught TypeError: Can not read property 'PRM_P...
asked by 10.10.2018 / 04:53
0
answers

Is it possible to place a Base64 image on a PDF with Ireport v3.0?

I have a base 64 image, and I want to place it in an Ireport image as a dynamic path, is it possible to do that configuration? To then show it in a report. I have Ireport v 3.0 and I work with java 6     
asked by 01.06.2018 / 21:10
0
answers

Generate PDF based on HTML code

I am in a problem and I turn to you to see possible solutions. I work in an application with Ionic (v1) and inside the app I have an HTML prototype template, from one of the flows the data that we show in the pdf comes out. I get the html cod...
asked by 23.05.2018 / 16:23
3
answers

Error when using base 64 image as background div

I have a variable that contains an image in base 64, I would like to place it as a background in a div. This is what worked for me. $ (".mode-header"). css ('background-image', 'url (' + image + ')'); This is the content of the imgConvenio...
asked by 13.03.2018 / 14:49
0
answers

Because I get "out of memory" in Laravel queue

I am using Store :: put () to save images that come by post with psd, jpg and png extension from the controller. With the png and jpg files there is no problem but I had to increase the memory of php.ini "memory_max .." to be able to execute...
asked by 26.02.2018 / 11:35
0
answers

How to change a Bipmap variable to String Base64 with Android Studio

img = (ImageView) findViewById (R.id.image); public void onActivityResult (int requestCode, int resultCode, Intent data) {         super.onActivityResult (requestCode, resultCode, data); if (resultCode == Activity.RESULT_OK) { B...
asked by 20.02.2018 / 00:43
1
answer

How to attach a PDF file encoded in base 64

I am developing a solution that consults PDF records from a WEB service. The result of the consumption of this service can be encoded and stored as PDF: File.WriteAllBytes(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\prueba...
asked by 04.05.2017 / 01:33