Home
Articles
Interview Questions
.Net
.Net Design Pattern
.Net Windows Service
ADO.NET
Android
Architecture
ASP.NET Ajax
ASP.NET Core
ASP.NET Gridview
ASP.NET MVC
ASP.NET Web API
Automation Anywhere
AWS
AWS SDK and C#
AWS SDK and Node.js
Azure DevOps
Blockchain
Bootstrap
C#
CSS
Django
Docker
Environment
Excel
Excel Formula
Firebase
Flutter and dart
Git
HTML
HTML 5
IIS
Java
JavaScript
JMeter
JQuery
JSON
Light Switch 2011
Linux
Machine Learning
Matplotlib
Microsoft Bot Framework
Microsoft Azure
MongoDB
MSWord
Node.js
NumPy
Pandas
Photoshop
PHP
PHP Codeigniter
PostGreSQL
Powerpoint
PowerShell
Project Management
Python
React.js
Seaborn
Selenium
Silverlight
Software Testing
Sonarqube
Spacy
SQL Server
Togaf
UiPath
VBA For Excel
VBA For Outlook
WCF
WPF
XML
XSD
Articles
→
JSON
→
Can We Store Image In JSON?
Can We Store Image In JSON?
Can we store image in JSON? This is the question that came to my mind and I started looking for the solution.
After research, I did not find any straight away solution, but we could achieve it by some other way. Let us see the steps.
Steps For Storing The Image In JSON
For storing the image in JSON
Convert image into base64 string. You can either do it programmatically or use online convertor. For doing this action, I have used
https://www.browserling.com/tools/image-to-base64
Click to Enlarge
Save base64 string in JSON.
Click to Enlarge
How To Get The Image Back From JSON?
To get the image from JSON
Read the Image attribute from JSON
Use program or online convertor to convert base64 string to image. For this action, I have used
https://codebeautify.org/base64-to-image-converter
Click to Enlarge
Free Online Image To Base64 Tool
https://extendsclass.com/image-to-base64.html
Posted By -
Karan Gupta
Posted On -
Saturday, November 17, 2018
Query/Feedback
Your Email Id
*
*
Subject
*
Query/Feedback
Characters remaining 250
*
*