<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Image bloat in mysql medium blob column</title>
        <description> Hi,

I&amp;#039;ve been loading pictures into MySQL 5.6 database for years ans recently realized that loading a 60k image ends up being stored as 600k in the database and when I extract the image, it comes out as 600k.  My method required loading the image into an image control linked to file and then using hAdd or hModify.  I&amp;#039;ve experimented and realized that if I use hLinkMemo, I get the proper size being loaded.  Does this mean the image control modifies the image in some way before saving it?  Any ideas on whats taking place in the background?

Thanks and regards

issah</description>
        <link>https://www.wxforum.info/read.php?27131,797739,797739#msg-797739</link>
        <lastBuildDate>Tue, 19 May 2026 03:26:27 +0200</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://www.wxforum.info/read.php?27131,797739,797747#msg-797747</guid>
            <title>Re: Image bloat in mysql medium blob column</title>
            <link>https://www.wxforum.info/read.php?27131,797739,797747#msg-797747</link>
            <description><![CDATA[ Hi Argus,<br />
<br />
Thanks.  This is new to me though when I realized this, I suspected the image control was doing some shenanigans behind the scenes.  Using hLinkMemo all the way now.<br />
<br />
issah]]></description>
            <dc:creator>mixgh</dc:creator>
            <category>WinDev Forum</category>
            <pubDate>Sat, 20 Jan 2024 19:30:35 +0100</pubDate>
        </item>
        <item>
            <guid>https://www.wxforum.info/read.php?27131,797739,797740#msg-797740</guid>
            <title>Re: Image bloat in mysql medium blob column</title>
            <link>https://www.wxforum.info/read.php?27131,797739,797740#msg-797740</link>
            <description><![CDATA[ when you are loading an image file in an image control, the content is modified to FIT the control...<br />
<br />
So if your image control is 800*600, you get an image containing 480000 pixels, EVEN if your original image was 400*300...<br />
<br />
So saving that directly to a file will change the content, yes<br />
<br />
On top of that (but I haven&#039;t tested that part), the image control itself is probably considered RAW format in your case, so even if you reiszed the control to the corrct size for your image before loading the image file in it, it would STILL probably be much bigger with your method, as there is no INPLIED dsauveimagejpg with a percentage of compression.]]></description>
            <dc:creator>Argus</dc:creator>
            <category>WinDev Forum</category>
            <pubDate>Thu, 18 Jan 2024 08:08:38 +0100</pubDate>
        </item>
        <item>
            <guid>https://www.wxforum.info/read.php?27131,797739,797739#msg-797739</guid>
            <title>Image bloat in mysql medium blob column</title>
            <link>https://www.wxforum.info/read.php?27131,797739,797739#msg-797739</link>
            <description><![CDATA[ Hi,<br />
<br />
I&#039;ve been loading pictures into MySQL 5.6 database for years ans recently realized that loading a 60k image ends up being stored as 600k in the database and when I extract the image, it comes out as 600k.  My method required loading the image into an image control linked to file and then using hAdd or hModify.  I&#039;ve experimented and realized that if I use hLinkMemo, I get the proper size being loaded.  Does this mean the image control modifies the image in some way before saving it?  Any ideas on whats taking place in the background?<br />
<br />
Thanks and regards<br />
<br />
issah]]></description>
            <dc:creator>mixgh</dc:creator>
            <category>WinDev Forum</category>
            <pubDate>Thu, 18 Jan 2024 03:21:18 +0100</pubDate>
        </item>
    </channel>
</rss>
