Have an amazing solution built in RAD Studio? Let us know. Looking for discounts? Visit our Special Offers page!
C++

Display JSON Base64 images created in C++Builder using Ext JS in browser

Author: h.mohri

Output to JSON Base64 Image Data Reading Browser.
I use Ext JS. And the JSON server is C++Builder bcc32.

 

Create a standalone new project for WebBroker.

 

 

Add action on TWebModule side.

PathInfo is set to "/img".

 

It is a code to output JSON corresponding to CORS.

Code that can be compiled with bcc32. For CORS please refer to the following URL.
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

The output JSON is as follows.

Ext JS design.

Create image and button screens using Sencha Architect.

Add Store.

Create a button event for Ext JS.

Kai 1.1 Now Available! Kai 1.1 Now Available! What's Coming in RAD Studio 13.2 Florence

Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.

Start Free Trial   Upgrade Today

   Free Delphi Community Edition   Free C++Builder Community Edition

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

IN THE ARTICLES