Jump to content
jcpetu

Load image from memory and pass to imageviewer

Recommended Posts

Hi people, I was trying to load an image from memory to pass to Microsoft Image Viewer but without success, I wonder if it 's possible somehow. I'll appreciate any help.

#include <GDIPlus.au3>
#include <Memory.au3>
#include <WinAPI.au3>
#include <WinAPIEx.au3>
;----------------------------------------------------------------------------------------------------------------------


Global $pic1 = Load_BMP_From_Mem(PeonBlancopng())


Run('rundll32 shimgvw.dll,ImageView_Fullscreen ' & $pic1) ; 


Func PeonBlancopng()
    Local $Base64String = 'iVBORw0KGgoAAAANSUhEUgAAAEQAAAB/CAYAAABWrmTcAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTJDBGvsAAAqHUlEQVR4Xu2cB1RU5/b2p3c6WLD3FqNGY2KLMTEmxjSTmGKKSW5iLyCIBRUroKCIgiDSe++9V0VFxRYLFsQCKE16mZnn22dmSIxJbsz/XoP3W+y19hoWypz3/M5+9/vstxxWt3Vbt3Vbt3Vbt3Vbt3Vbt3Vbt3Vbt3Vbt3Vbt3Vbt3Xb/5xddh/BafQz5D0K78NvCO0rZD4bIwx51xyHcjT/5f9/u++hL7jnpqN7z8WgT6W7/ug6H+1X64P132wKNpjXSJ8NgVqv1B7VG1Ptpm9c66WjW+2rJ9T86f8/FmvVm11kry09t19nwJ0jsnfuu8k2V7lJw+o8JEW13pIbjQGSirYgcVVrgKSy0Vd8s8VHfKrJQxxW6yXdUu0lmXvbSTbg1gGBtNiOxdZ85f+uFdroiE7ayoac3y/9V8lBcWzZYUF5xVGhosZLiHpfEZr9xWgPkkARKoUiRIqOIDHaAoRo9hPgkQ9fUe3Bq7x/hB9fdoj3U8lB3pCz+7RFmq/+37JQ077swu1cvaI9kg8v7hPFXT8kaCg7zEe5mwAPPESo8dZCfaAhmkON0R45AIqYgVBED0RHZF+0hRqhOVAbjX4i1HvxUOvBQeURTmPZYV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+hLHibPmdDmfM6lFnMi95egTz5JbRHv4jWyNFoDh2OxqBBeOTfDw+9e6P0aA8ahQjeAR0U2zGJWkRJm6+uZajgZCawfnWmEP1FqcrpYSfsXD5cprntP7dAEy1OkIl0fvx6VutfA1FfLMWSCioaQfJ266JwLz19Zl3m0AD1uV33UepjqgETVcpS9XLImDdQmzBHpTyZI6it2QtU7z9U5DH1zIfoyJqH9vQ5aE2ZhabE6arlzvrol1AXPhY1ISPwMGDIL8sQJS49KJr0UcxMMtuIVcUdU3mrgXS6up2PAVFEmXGPOa8w1tfc9p/b/x2I5N8AGUtAXiIgr2iAzPoDIJ8RDAKS8wE6VC+6fwutya+jKWGaBsiEx4AMJiD9nwCipQHCf2ogPt1AuoFovKuB7O8G8jeATO8G0g3kfwNI'
    $Base64String &= 'QTeQ/wuQgC4D8sVjwoyApBOQlNfVG2ZUQJ4UZv8ZkGhzboHn0wDxN5FxAk2l8+Is2A3MDPVvnYConPlicuYC5CmbqBFWzEKVDkl3A5za30u9perwIM07iMaoliGYLVXlzPtDomagJu4NPEqag8bUeWjJ/BDt2Z9DTtHB7CLqyJiD9tQ3KEJmoDmBZH7MRNRHjUNd2GjUBA8jIMwOon4k3XuRdKeax5Fqnd8AUUt31WzfL65uK90Hs7QpJyCZB1YY62pu+8/Nd5WUHbBaMor+ICvegl3OOMH5jcdbcNS+Xu2JG3jlqZsF5RQl5Xm7pOXHbbTLT9nplZ/db1hx4WDPisuHjStKjvStuOk+oKLMe3DFfb9hFZVBwyuqQkdV1EWMrWiIGlfREjuhsi1+XGV73NjK1pjRlc1RIyobw4dW1ocOqqwL7l9ZE9CnssqvV+UDb6PKcg+DyrIjepU3nLUrLzvKKs/bSyqLbEWVx3YJKnO28SrTNnMrCUJl/Hrug1+do3YL9gO6hzsRawU2q/70xCaL9f8Am9bJ5/8Ex3AAAAAASUVORK5CYII='
    Return Binary(WinAPI_Base64Decode($Base64String))
EndFunc   ;==>PeonBlancopng

;-------------------------------------------------------------------------------------------------------------------------

Func Load_BMP_From_Mem($bImage, $hHBITMAP = False)
    If Not IsBinary($bImage) Then Return
    Local $declared = True
    If Not $__g_hGDIPDll Then
        _GDIPlus_Startup()
        $declared = False
    EndIf
    Local Const $memBitmap = Binary($bImage) ;load image  saved in variable (memory) and convert it to binary
    Local Const $len = BinaryLen($memBitmap) ;get length of image
    Local Const $hData = _MemGlobalAlloc($len, $GMEM_MOVEABLE) ;allocates movable memory  ($GMEM_MOVEABLE = 0x0002)
    Local Const $pData = _MemGlobalLock($hData) ;translate the handle into a pointer
    Local $tMem = DllStructCreate("byte[" & $len & "]", $pData) ;create struct
    DllStructSetData($tMem, 1, $memBitmap) ;fill struct with image data
    _MemGlobalUnlock($hData) ;decrements the lock count  associated with a memory object that was allocated with GMEM_MOVEABLE
    Local $hStream = DllCall("ole32.dll", "int", "CreateStreamOnHGlobal", "handle", $pData, "int", True, "ptr*", 0)
    $hStream = $hStream[3]
    Local $hBitmap = DllCall($__g_hGDIPDll, "uint", "GdipCreateBitmapFromStream", "ptr", $hStream, "int*", 0) ;Creates a Bitmap object based on an IStream COM interface
    $hBitmap = $hBitmap[2]
    Local Const $tVARIANT = DllStructCreate("word vt;word r1;word r2;word r3;ptr data; ptr")
    DllCall("oleaut32.dll", "long", "DispCallFunc", "ptr", $hStream, "dword", 8 + 8 * @AutoItX64, "dword", 4, "dword", 23, "dword", 0, "ptr", 0, "ptr", 0, "ptr", DllStructGetPtr($tVARIANT)) ;release memory from $hStream to avoid memory leak
    $tMem = 0
    If $hHBITMAP Then
        Local Const $hHBmp = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hBitmap)
        _GDIPlus_BitmapDispose($hBitmap)
        If Not $declared Then _GDIPlus_Shutdown()
        Return $hHBmp
    EndIf
    If Not $declared Then _GDIPlus_Shutdown()
    Return $hBitmap
EndFunc   ;==>Load_BMP_From_Mem

Func WinAPI_Base64Decode($sB64String)
    Local $aCrypt = DllCall("Crypt32.dll", "bool", "CryptStringToBinaryA", "str", $sB64String, "dword", 0, "dword", 1, "ptr", 0, "dword*", 0, "ptr", 0, "ptr", 0)
    If @error Or Not $aCrypt[0] Then Return SetError(1, 0, "")
    Local $bBuffer = DllStructCreate("byte[" & $aCrypt[5] & "]")
    $aCrypt = DllCall("Crypt32.dll", "bool", "CryptStringToBinaryA", "str", $sB64String, "dword", 0, "dword", 1, "struct*", $bBuffer, "dword*", $aCrypt[5], "ptr", 0, "ptr", 0)
    If @error Or Not $aCrypt[0] Then Return SetError(2, 0, "")
    Return DllStructGetData($bBuffer, 1)
EndFunc   ;==>WinAPI_Base64Decode

 

Share this post


Link to post
Share on other sites

Try this:

#include <GDIPlus.au3>
#include <Memory.au3>
#include <WinAPI.au3>
#include <WinAPIEx.au3>
;----------------------------------------------------------------------------------------------------------------------

_GDIPlus_Startup()
Global $pic1 = _GDIPlus_BitmapCreateFromMemory(PeonBlancopng())
_GDIPlus_ImageSaveToFile($pic1, @TempDir & "\Test.png")

Run('rundll32 shimgvw.dll,ImageView_Fullscreen ' &  @TempDir & "\Test.png") ;
_GDIPlus_ImageDispose($pic1)

_GDIPlus_Shutdown()

Func PeonBlancopng()
    Local $Base64String = 'iVBORw0KGgoAAAANSUhEUgAAAEQAAAB/CAYAAABWrmTcAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTJDBGvsAAAqHUlEQVR4Xu2cB1RU5/b2p3c6WLD3FqNGY2KLMTEmxjSTmGKKSW5iLyCIBRUroKCIgiDSe++9V0VFxRYLFsQCKE16mZnn22dmSIxJbsz/XoP3W+y19hoWypz3/M5+9/vstxxWt3Vbt3Vbt3Vbt3Vbt3Vbt3Vbt3Vbt3Vbt3Vbt3Vbt3Xb/5xddh/BafQz5D0K78NvCO0rZD4bIwx51xyHcjT/5f9/u++hL7jnpqN7z8WgT6W7/ug6H+1X64P132wKNpjXSJ8NgVqv1B7VG1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Xu2JG3jlqZsF5RQl5Xm7pOXHbbTLT9nplZ/db1hx4WDPisuHjStKjvStuOk+oKLMe3DFfb9hFZVBwyuqQkdV1EWMrWiIGlfREjuhsi1+XGV73NjK1pjRlc1RIyobw4dW1ocOqqwL7l9ZE9CnssqvV+UDb6PKcg+DyrIjepU3nLUrLzvKKs/bSyqLbEWVx3YJKnO28SrTNnMrCUJl/Hrug1+do3YL9gO6hzsRawU2q/70xCaL9f8Am9bJ5/8Ex3AAAAAASUVORK5CYII='
    Return Binary(WinAPI_Base64Decode($Base64String))
EndFunc   ;==>PeonBlancopng

Func WinAPI_Base64Decode($sB64String)
    Local $aCrypt = DllCall("Crypt32.dll", "bool", "CryptStringToBinaryA", "str", $sB64String, "dword", 0, "dword", 1, "ptr", 0, "dword*", 0, "ptr", 0, "ptr", 0)
    If @error Or Not $aCrypt[0] Then Return SetError(1, 0, "")
    Local $bBuffer = DllStructCreate("byte[" & $aCrypt[5] & "]")
    $aCrypt = DllCall("Crypt32.dll", "bool", "CryptStringToBinaryA", "str", $sB64String, "dword", 0, "dword", 1, "struct*", $bBuffer, "dword*", $aCrypt[5], "ptr", 0, "ptr", 0)
    If @error Or Not $aCrypt[0] Then Return SetError(2, 0, "")
    Return DllStructGetData($bBuffer, 1)
EndFunc   ;==>WinAPI_Base64Decode

;-------------------------------------------------------------------------------------------------------------------------

The function Load_BMP_From_Mem is obsolete and had been replace by _GDIPlus_BitmapCreateFromMemory!

 


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

UEZ, 

is the script File to Base64 String Code Generator.au3 still valid? to pass images to memory?

I mean, because when I run it I got the error: $WH_CBT: undeclared global variable.
    Local $CBT_Hook = _WinAPI_SetWindowsHookEx($WH_CBT,

Share this post


Link to post
Share on other sites
1 minute ago, jcpetu said:

UEZ, 

is the script File to Base64 String Code Generator.au3 still valid? to pass images to memory?

I mean, because when I run it I got the error: $WH_CBT: undeclared global variable.
    Local $CBT_Hook = _WinAPI_SetWindowsHookEx($WH_CBT,

Which version of AutoIt are you using?


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites
Just now, jcpetu said:

I'm using ProductVersion, 3.3.12.0

This is the AutoIt version! Above you wrote "3.3.14.5"!?!?

You must use the latest AutoIt version because of the different includes and constants...


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

 

4 minutes ago, jcpetu said:

I'm File to Base64 String Code Generator.au3 script is version 1.2.0.0

This version runs properly with the latest AutoIt version! I assume that your are still using an older version! Please check out that you are running the latest Autoit version.


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

OK, I will. 

Another question isn't it possible to pass the image directly from memory to the viewer without saving it first to disk with _GDIPlus_ImageSaveToFile($pic1, @TempDir & "\Test.png") ?

Share this post


Link to post
Share on other sites

UEZ,

I download last versions of Autoit and last version  of File to Base64 String Code Generator.au3 thought  I got:

File to Base64 String Code Generator.au3 version 1.2.0.0

Autoit  version 3.3.14.5

But when I try to run the script I got the following errors:

C:\Temp\Programacion\A3\01-File to Base64 String Code Generator v1.20\File to Base64 String Code Generator.au3"(217,37) : error: $SND_ASYNC previously declared as a 'Const'.
Global Const $SND_ASYNC = 0x00000001
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:\Temp\Programacion\A3\01-File to Base64 String Code Generator v1.20\File to Base64 String Code Generator.au3"(218,38) : error: $SND_MEMORY previously declared as a 'Const'.
Global Const $SND_MEMORY = 0x00000004
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:\Temp\Programacion\A3\01-File to Base64 String Code Generator v1.20\File to Base64 String Code Generator.au3"(219,38) : error: $SND_NOSTOP previously declared as a 'Const'.
Global Const $SND_NOSTOP = 0x00000010
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:\Temp\Programacion\A3\01-File to Base64 String Code Generator v1.20\File to Base64 String Code Generator.au3"(1215,52) : warning: $WH_CBT: possibly used before declaration.
    Local $CBT_Hook = _WinAPI_SetWindowsHookEx($WH_CBT,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:\Temp\Programacion\A3\01-File to Base64 String Code Generator v1.20\File to Base64 String Code Generator.au3"(1215,52) : error: $WH_CBT: undeclared global variable.
    Local $CBT_Hook = _WinAPI_SetWindowsHookEx($WH_CBT,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:\Temp\Programacion\A3\01-File to Base64 String Code Generator v1.20\File to Base64 String Code Generator.au3"(1215,116) : error: _WinAPI_GetCurrentThreadId(): undefined function.
    Local $CBT_Hook = _WinAPI_SetWindowsHookEx($WH_CBT, DllCallbackGetPtr($CBT_ProcCB), 0, _WinAPI_GetCurrentThreadId()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Temp\Programacion\A3\01-File to Base64 String Code Generator v1.20\File to Base64 String Code Generator.au3 - 5 error(s), 1 warning(s)
!>17:25:42 AU3Check ended. Press F4 to jump to next error.rc:2
+>17:25:43 AutoIt3Wrapper Finished.

If I run the File to Base64 String Code Generator.exe included in the zip file it runs OK, but I'm not able to compile it nor to run it.

Share this post


Link to post
Share on other sites

UEZ, I found that It's necessary to add:

#include <WinAPIConstants.au3>
#include <WinAPIProc.au3>

and delete the following vars:

Global Const $SND_ASYNC = 0x00000001
Global Const $SND_MEMORY = 0x00000004
Global Const $SND_NOSTOP = 0x00000010

Share this post


Link to post
Share on other sites

For those who (like me) prefer calling the dll directly :

#cs ----------------------------------------------------------------------------
API - shimgvw.dll

VOID ImageView_Fullscreen(HWND hwnd, HINSTANCE hInst, LPCWSTR path, int nShow);
VOID ImageView_FullscreenA(HWND hwnd, HINSTANCE hInst, LPCSTR path, int nShow);
VOID ImageView_FullscreenW(HWND hwnd, HINSTANCE hInst, LPCWSTR path, int nShow);
VOID ImageView_PrintTo(HWND hwnd, HINSTANCE hInst, LPCWSTR path, int nShow);
VOID ImageView_PrintToA(HWND hwnd, HINSTANCE hInst, LPCSTR path, int nShow);
VOID ImageView_PrintToW(HWND hwnd, HINSTANCE hInst, LPCWSTR path, int nShow);
VOID ImageView_fullscreenW(HWND hwnd, HINSTANCE hInst, LPCWSTR path, int nShow);
#ce

#include <WinAPISysWin.au3>

Local $dll = -1, $title_img = "C:\yourImage.jpg"

$dll = DllOpen("shimgvw.dll")
If $dll = -1 Then Exit 1
ConsoleWrite("$dll = " & $dll & @CRLF)

Local $hwnd = _WinAPI_GetDesktopWindow()
If @error Then
  ConsoleWrite("Unable to get Desktop window : " & @error & @CRLF)
  Exit 2
EndIf
ConsoleWrite("hwnd = " & $hwnd & @CRLF)

Local $hinst = _WinAPI_GetModuleHandle ("shimgvw.dll")
If @error Then
  ConsoleWrite("Unable to get module handle : " & @error & @CRLF)
  Exit 3
EndIf
ConsoleWrite("hinst = " & $hinst & @CRLF)

DllCall($dll, "none", "ImageView_Fullscreen", "HWND", $hwnd, "ptr", $hinst, "wstr", $title_img, "int", @SW_SHOW)

If $dll <> -1 Then DllClose($dll)

As you can see there is no API to get image from memory.  However you could use your own GUI to display the image from memory...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...