Hello
I am attempting to insert unconventional characters (essentially binary) into my UltraEdit file/script. Theres a good reason for this and I am hoping I can insert binary text into the UltraEdit editor.
I am attempting to place a bitmaps binary data inside my UltraEdit script. The end goal is to package image data inside a script(in my case 4d Macro Script).
So for example:
Currently when I copy and paste binary into the UE Editor it changes the data slightly (I loose null chars). I understand how text files work and encoding but I am hoping there is some way to paste/store binary data inside the UE Editor?
Is it possible? Any ideas how I could achieve this?
I am attempting to insert unconventional characters (essentially binary) into my UltraEdit file/script. Theres a good reason for this and I am hoping I can insert binary text into the UltraEdit editor.
I am attempting to place a bitmaps binary data inside my UltraEdit script. The end goal is to package image data inside a script(in my case 4d Macro Script).
So for example:
Code: Select all
{
Text IMAGE_NAME = "Delete Model.bmp";
Text IMAGE_DATA = "BM6 6 ( t t ÿ¯½ðØéìØéìØéìØéìØéìØéìØéìØéìØéìØéìØéìØé쯽ð ÿÊÚí ÿ¯½ðØéìØéìØéìØéìØéìØéìØéìØéìØéìØé쯽ð ÿÊÚíØéìÊÚí ÿ¯½ðØéìØéìØéìØéìë×Åë×ÅØéìØé쯽ð ÿÊÚíØéìØéìØéìÊÚí ÿ¯½ðØéìØéìë×Å €º¡‹ë×ů½ð ÿÊÚíØéìØéìØéìØéìØéìÊÚí ÿ¿¯Ð € ÿàÆ® ÿ ˜ ÿÜÊÉØéìØéìØéìØéìØéìØéìë×Å ˆ ÿ¹¦ÅäÌ·àÆ®´Ÿ¼ ÿ ÿ €¹„ÈêîØéìØé컾¹ € ÿë×ÅÖ¿¼ ÿ·£À{œ ÿи±âÆ«àɵ ÿ €ØéìØéì¹ úóðøôïøôïë×Ū ÿ ÿ€ml•€ãÈâDzóêáØéìØéìØéìúõòøôïøôﵧš‰tbœ¯ ÿ ÿ®˜²À®œ‰tb®Ÿ“ØéìØéìØéìØéìØé쵧š‰tbÝƯ®˜² ÿɯ¦É¯¦ ÿ®˜²Ö» À®œ‰tb¶·²ØéìØéì‰tbÍÀ¶ñáÒ¹©É ÿÊ°§Ö» Ö» ɯ¦ ÿ®˜²òßÐåÖÃØéìØéìØéìíòðûøôÉÅó";
}
Integer register_image(Text imageName, Text imageData)
{
// Check if image is already present in Images folder: if not create it
Text imagesFolder = get_main_image_folder();
if (File_exists(imagesFolder + imageName))
return 0;
return file_write(imagesFolder + imageName, imageData);
}
void main()
{
register_image(IMAGE_NAME, IMAGE_DATA);
}
Is it possible? Any ideas how I could achieve this?