<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged blob</title>
<link>https://www.question2answer.org/qa/tag/blob</link>
<description>Powered by Question2Answer</description>
<item>
<title>Different avatar Blob size images won't load consistently on HTTP protocol</title>
<link>https://www.question2answer.org/qa/112835/different-avatar-blob-size-images-wont-consistently-protocol</link>
<description>

&lt;p&gt;I know that most websites use HTTPS protocols nowadays, but I've encountered the following bug.&lt;/p&gt;

&lt;p&gt;I've noticed that different Avatar Blob sizes won't load consistently to everybody on HTTP protocol.
&lt;br&gt;The weird thing is that for example, a image with &quot;&lt;strong&gt;&amp;amp;qa_size=52&lt;/strong&gt;&quot; might load fine for me on this device, but if I change browsers or change to a different device,&amp;nbsp;that same image won't load, but others will, and vice-versa.&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;&lt;span style=&quot;color:#000000; font-family:Segoe UI,Tahoma,sans-serif&quot;&gt;&lt;span style=&quot;font-size:15px&quot;&gt;No webpage was found for the web address:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;a href=&quot;http://mywebsite.com/?qa=image&amp;amp;qa_blobid=&quot; rel=&quot;nofollow&quot;&gt;http://mywebsite.com/?qa=image&amp;amp;qa_blobid=&lt;/a&gt;&lt;span style=&quot;color:#000000; font-family:Segoe UI,Tahoma,sans-serif&quot;&gt;&lt;span style=&quot;font-size:15px&quot;&gt;8419242312434086559&lt;/span&gt;&lt;/span&gt;&amp;amp;qa_size=52&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#000000&quot;&gt;HTTP ERROR 404&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;ul&gt;

&lt;li&gt;This problem doesn't seem to occur locally on Localhost.&lt;/li&gt;

&lt;li&gt;Also, &quot;&lt;strong&gt;&amp;amp;qa_size=100&lt;/strong&gt;&quot; is the only size&amp;nbsp;that seems to be working consistently for everybody.&lt;/li&gt;

&lt;li&gt;Caching is also disabled.&lt;/li&gt;

&lt;li&gt;On HTTPS seems to be working fine, as if we open my avatar &lt;a target=&quot;_blank&quot; rel=&quot;nofollow&quot; href=&quot;https://question2answer.org/qa/?qa=image&amp;amp;qa_blobid=8419242312434086559&amp;amp;qa_size=50&quot;&gt;here&lt;/a&gt;&amp;nbsp;for example, and&amp;nbsp;give it a random size, this problem doesn't happen.
&lt;br&gt;But if you open this avatar &lt;a target=&quot;_blank&quot; rel=&quot;nofollow&quot; href=&quot;http://polaris.unaux.com/?qa=image&amp;amp;qa_blobid=17071456187294203715&amp;amp;qa_size=40&quot;&gt;here&lt;/a&gt;, and give it a random size&amp;nbsp;(52 for example), it throws out a 404 page.&lt;/li&gt;

&lt;li&gt;Tried with different themes and the result is the same.&lt;/li&gt;&lt;/ul&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/112835/different-avatar-blob-size-images-wont-consistently-protocol</guid>
<pubDate>Sat, 16 Mar 2024 18:05:41 +0000</pubDate>
</item>
<item>
<title>How to fix Viewport not configured correctly?</title>
<link>https://www.question2answer.org/qa/87049/how-to-fix-viewport-not-configured-correctly</link>
<description>I already add viewport in the layout--&amp;gt; head section . But this viewport issue is still remain.How can i fix this issue?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/87049/how-to-fix-viewport-not-configured-correctly</guid>
<pubDate>Wed, 26 Aug 2020 03:48:48 +0000</pubDate>
</item>
<item>
<title>How to set up QA_BLOBS_DIRECTORY correctly?</title>
<link>https://www.question2answer.org/qa/86179/how-to-set-up-qa_blobs_directory-correctly</link>
<description>

&lt;p&gt;I'm moving images stored in database to a directory. I created a folder named &quot;blob&quot; inside of my installation folder and change its permissions to 777.&lt;/p&gt;

&lt;p&gt;However, I got the error message&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;The directory /blob/ defined as QA_BLOBS_DIRECTORY is not writable by the web server.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Here's what in the configure file&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;define('QA_BLOBS_DIRECTORY', '/blob/');&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;How do I set up in a correct way?&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/86179/how-to-set-up-qa_blobs_directory-correctly</guid>
<pubDate>Mon, 20 Jul 2020 03:50:19 +0000</pubDate>
</item>
<item>
<title>How protect direct 'blob' viewing.</title>
<link>https://www.question2answer.org/qa/49297/how-protect-direct-blob-viewing</link>
<description>

&lt;p&gt;If someone tries to access blob directly, via say a address like:
&lt;br&gt;
&lt;br&gt;&lt;a href=&quot;http://2outof10wouldnotbang.com/?qa=blob&amp;amp;qa_blobid=15199514007654777792&quot; rel=&quot;nofollow&quot;&gt;http://2outof10wouldnotbang.com/?qa=blob&amp;amp;qa_blobid=15199514007654777792&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;How can i have this redirected to the actual question that this blob was posted in, in the above case,
&lt;br&gt;
&lt;br&gt;&lt;a href=&quot;http://2outof10wouldnotbang.com/34/would-not-bang-in-a-cupboard&quot; rel=&quot;nofollow&quot;&gt;http://2outof10wouldnotbang.com/34/would-not-bang-in-a-cupboard&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;I presume this cannot be achieved within .htaccess file, in fact the above is not being picked up by the usualy hotlink protection entries in .htaccess as below:&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;#Rewrite RUle for Hotlinking
&lt;br&gt;RewriteCond %{HTTP_REFERER} !^http://(.+\.)?2outof10wouldnotbang\.com/ [NC]
&lt;br&gt;RewriteCond %{HTTP_REFERER} !google\. [NC]
&lt;br&gt;RewriteCond %{HTTP_REFERER} !yahoo\. [NC]
&lt;br&gt;RewriteCond %{HTTP_REFERER} !bing\. [NC]
&lt;br&gt;RewriteCond %{HTTP_REFERER} !^$
&lt;br&gt;RewriteRule \.(gif|jpe?g|png|ti?ff|bmp)$ &lt;a href=&quot;http://2outof10wouldnotbang.com/qa-media/stop_sign.jpg&quot; rel=&quot;nofollow&quot;&gt;http://2outof10wouldnotbang.com/qa-media/stop_sign.jpg&lt;/a&gt; [R,L]&lt;/p&gt;&lt;/blockquote&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/49297/how-protect-direct-blob-viewing</guid>
<pubDate>Thu, 10 Dec 2015 00:46:58 +0000</pubDate>
</item>
<item>
<title>attaching files to questions</title>
<link>https://www.question2answer.org/qa/38613/attaching-files-to-questions</link>
<description>i've tried to use few editors , enabled uploading ,&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;set my blob path to /opt/lampp/htdocs/blob with all permissions.&lt;br /&gt;
&lt;br /&gt;
but...&lt;br /&gt;
&lt;br /&gt;
every time i upload an image only a link appers,&lt;br /&gt;
&lt;br /&gt;
and when i submit a question the link does not exist.&lt;br /&gt;
&lt;br /&gt;
what seems to be the problem?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/38613/attaching-files-to-questions</guid>
<pubDate>Mon, 22 Sep 2014 23:57:22 +0000</pubDate>
</item>
<item>
<title>Change of qa-blob.php for v1.7 (@Scott)</title>
<link>https://www.question2answer.org/qa/33645/change-of-qa-blob-php-for-v1-7-%40scott</link>
<description>

&lt;p&gt;
	Hi Scott (and Gideon?),&lt;/p&gt;


&lt;p&gt;
	when a PDf is uploaded as Blob and downloaded later on, the current qa-blob.php serves the file only as attachment. This always triggers the download dialog.&lt;/p&gt;


&lt;p&gt;
	The &lt;a rel=&quot;nofollow&quot; href=&quot;http://www.question2answer.org/qa/33644/pdf-embed-now-possible-with-extended-q2a-embed-plugin&quot;&gt;embed plugin with PDF embed&lt;/a&gt; cannot work out of the box. The following core hack is necessary:&lt;/p&gt;


&lt;p&gt;
	See from lline 75:&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; default:
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$filename=preg_replace('/[^A-Za-z0-9 \\._-]/', '-', $blob['filename']); // for compatibility with HTTP headers and all browsers
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;br&gt;
	&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// q2apro hack for embed pdf
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if($blob['format']=='pdf') {
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;header('Content-Type: application/pdf');
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;header('Content-Disposition: inline; filename=&quot;'.$filename.'&quot;');&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;break;
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;header('Content-Type: application/octet-stream');
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;header('Content-Disposition: attachment; filename=&quot;'.$filename.'&quot;');
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;break;
&lt;br&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	Can this be included (as an option?) in q2a v1.7?&lt;/p&gt;


&lt;p&gt;
	Thanks,
&lt;br&gt;
	Kai&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/33645/change-of-qa-blob-php-for-v1-7-%40scott</guid>
<pubDate>Wed, 16 Apr 2014 11:29:42 +0000</pubDate>
</item>
<item>
<title>Getting the path to image file from qa_blob?</title>
<link>https://www.question2answer.org/qa/28773/getting-the-path-to-image-file-from-qa_blob</link>
<description>

&lt;p&gt;
	I am testing the new feature &quot;save image to harddrive&quot;&amp;nbsp; instead of blob.&lt;/p&gt;


&lt;p&gt;
	As I see there are folders created in my upload folder defined in QA_BLOBS_DIRECTORY. As it seems these are arbitrary numbers from 000 to 184.&lt;/p&gt;


&lt;p&gt;
	Two questions:&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;1. What is the mechansim behind the folder numbers?&lt;/strong&gt;
&lt;br&gt;
	okay, while writing this post, I found the answer in: function qa_get_blob_directory()
&lt;br&gt;
	(subdirectories are named by the first 3 digits of $blobid)&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;2. How can I retrieve the path to the file on the harddisk using qa_blobs table?&lt;/strong&gt;
&lt;br&gt;
	This is important as I would like to update my image manager plugin accordingly.&lt;/p&gt;


&lt;p&gt;
	Okay, number 2 can also be solved regarding number 1.&lt;/p&gt;


&lt;p&gt;
	But there is another question now:&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;strong&gt;3. Why is &quot;849092891028879862.png&quot; saved in folder &quot;008&quot; and not &quot;849&quot; ?&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	Here is the substring return from function qa_get_blob_directory:
&lt;br&gt;
	&lt;span style=&quot;color:#0000ff;&quot;&gt;rtrim(QA_BLOBS_DIRECTORY, '/').'/'.substr(str_pad($blobid, 20, '0', STR_PAD_LEFT), 0, 3)&lt;/span&gt;;&lt;/p&gt;


&lt;p&gt;
	But what is happening here? STR_PAD_LEFT fills zeros to the left, 0, 3 takes the first 3 digits.... ?&lt;/p&gt;


&lt;p&gt;
	Thanks.&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/28773/getting-the-path-to-image-file-from-qa_blob</guid>
<pubDate>Fri, 01 Nov 2013 07:42:24 +0000</pubDate>
</item>
<item>
<title>subdirectories are named by the first 3 digits of $blobid - Why?</title>
<link>https://www.question2answer.org/qa/28223/subdirectories-are-named-by-the-first-digits-of-%24blobid-why</link>
<description>

&lt;p&gt;
	I am just checking the new blob upload features, @gidgreen: good work for the image resizing!&lt;/p&gt;


&lt;p&gt;
	Now I am wondering, why there are folders created for the blobs. see &quot;subdirectories are named by the first 3 digits of $blobid&quot; from &lt;em&gt;function qa_get_blob_directory($blobid) in qa-app-blobs.php&lt;/em&gt;&lt;/p&gt;


&lt;p&gt;
	?&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/28223/subdirectories-are-named-by-the-first-digits-of-%24blobid-why</guid>
<pubDate>Tue, 15 Oct 2013 11:54:14 +0000</pubDate>
</item>
<item>
<title>Where is the option to upload images to disk instead database / blob?</title>
<link>https://www.question2answer.org/qa/28176/where-is-the-option-upload-images-disk-instead-database-blob</link>
<description>I cannot find the postings... I just found the &amp;quot;buttons&amp;quot; graphics: &lt;a href=&quot;http://www.question2answer.org/qa/24390/tips-upload-file-management-with-v1-6&quot; rel=&quot;nofollow&quot;&gt;http://www.question2answer.org/qa/24390/tips-upload-file-management-with-v1-6&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
I'd like to activate and test the feature upload image to server instead database - where is it?&lt;br /&gt;
&lt;br /&gt;
it must be somewhere...</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/28176/where-is-the-option-upload-images-disk-instead-database-blob</guid>
<pubDate>Mon, 14 Oct 2013 17:37:10 +0000</pubDate>
</item>
<item>
<title>Getting All Blobs From a User?</title>
<link>https://www.question2answer.org/qa/25838/getting-all-blobs-from-a-user</link>
<description>I'm making a plugin that adds a gallery page where the user can add its own art/images/... . The upload works fine, the blobs have the correct user-id, but now I don't know how I'd fetch all the blobs uploaded by a particular user. How would one do so?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/25838/getting-all-blobs-from-a-user</guid>
<pubDate>Fri, 19 Jul 2013 13:54:04 +0000</pubDate>
</item>
<item>
<title>Writing a blob from a plugin</title>
<link>https://www.question2answer.org/qa/25717/writing-a-blob-from-a-plugin</link>
<description>If one wants to write the contents of an image to the database (in the blobs : 'qa_blobs'), how would he do so through PHP?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/25717/writing-a-blob-from-a-plugin</guid>
<pubDate>Wed, 17 Jul 2013 13:15:27 +0000</pubDate>
</item>
<item>
<title>Special upload area for only Experts - interested in such a plugin?</title>
<link>https://www.question2answer.org/qa/25569/special-upload-area-for-only-experts-interested-such-plugin</link>
<description>

&lt;p&gt;
	I think this is an idea for a new plugin...
&lt;br&gt;
	
&lt;br&gt;
	All my users as well as anonymous can upload images to the forum using the WYSIWYG editor. The upload is restricted to images only.
&lt;br&gt;
	
&lt;br&gt;
	However, some of my experts create professional documents in &lt;strong&gt;PDF format&lt;/strong&gt;.&lt;/p&gt;


&lt;p&gt;
	1. They should upload their PDFs on a &lt;strong&gt;separate page, &lt;/strong&gt;saved as blob into the blob-db-table (qa_blobs).&lt;/p&gt;


&lt;p&gt;
	2. Every expert should see a list of all uploaded PDFs to get the link from.&lt;/p&gt;


&lt;p&gt;
	3. It would be great to have another filename than &lt;em&gt;domain.com/?qa=blob&amp;amp;qa_blobid=17474948105245553660&lt;/em&gt; maybe something like: &lt;em&gt;domain.com/documents?pdf=17474948105245553660&lt;/em&gt;
&lt;br&gt;
	
&lt;br&gt;
	Anyone likes the idea, and is interested?
&lt;br&gt;
	
&lt;br&gt;
	Thanks,
&lt;br&gt;
	Kai&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/25569/special-upload-area-for-only-experts-interested-such-plugin</guid>
<pubDate>Sun, 14 Jul 2013 14:14:05 +0000</pubDate>
</item>
<item>
<title>Migrate to disk problem</title>
<link>https://www.question2answer.org/qa/24619/migrate-to-disk-problem</link>
<description>

&lt;p&gt;
	Hello i am getting this error whin i enabled my blob form config file and when i click to migrate from database to disk it stats and not stops like that &amp;nbsp; 100 of 7 150 of 7 &amp;nbsp;........ 800 of 7 and so on...&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;color: rgb(255, 217, 217); font-family: Helvetica, Arial, Sens-serif; font-size: 18px; line-height: 27px; background-color: rgb(221, 0, 0);&quot;&gt;The directory 1 defined as QA_BLOBS_DIRECTORY is not writable by the web server.&lt;/span&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/24619/migrate-to-disk-problem</guid>
<pubDate>Sun, 16 Jun 2013 03:21:45 +0000</pubDate>
</item>
<item>
<title>Tips: Upload file management with V1.6</title>
<link>https://www.question2answer.org/qa/24390/tips-upload-file-management-with-v1-6</link>
<description>

&lt;p&gt;
	The feature that can manage upload file on disk was added to Q2A V1.6.&amp;nbsp;I report usage of this feature.&lt;/p&gt;


&lt;p&gt;
	&lt;img alt=&quot;&quot; src=&quot;http://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=10672292329454002677&quot; style=&quot;width: 531px; height: 361px;&quot;&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-size:14px;&quot;&gt;&lt;strong&gt;What?&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	The file (image) uploaded in CKEditor(etc) was stored to database conventionally, you can choose database or disk &amp;nbsp;from V1.6.&amp;nbsp;Even if you choose disk, URL does not change. In other words, you can access files by old link(old link does not expire). Of course, there is data migration tool, too.&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;&lt;span style=&quot;font-size:14px;&quot;&gt;Where?&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;


&lt;ol&gt;
	

&lt;li&gt;
		Setting: qa-config.php&amp;nbsp;define('QA_BLOBS_DIRECTORY', ...&lt;/li&gt;
	

&lt;li&gt;
		Button: admin -&amp;gt; stats -&amp;gt; &quot;Blobs to disk&quot;&lt;/li&gt;
	

&lt;li&gt;
		Button: admin -&amp;gt; stats -&amp;gt; &quot;Blobs to database&quot;&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;
	&lt;strong&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;2 &amp;amp; 3 buttons nothing&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14px;&quot;&gt;in my Q2A...&amp;nbsp;&lt;img alt=&quot;frown&quot; height=&quot;20&quot; src=&quot;http://www.question2answer.org/qa/qa-plugin/wysiwyg-editor/plugins/smiley/images/confused_smile.gif&quot; title=&quot;frown&quot; width=&quot;20&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	2 and 3 buttons are displayed on following&amp;nbsp;condition.&lt;/p&gt;


&lt;ul&gt;
	

&lt;li&gt;
		button2: 1 is enable. AND data exit in database.&lt;/li&gt;
	

&lt;li&gt;
		button3: 1 is enable. AND file exist &amp;nbsp;in folder1.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;
	&lt;strong&gt;&lt;span style=&quot;font-size:14px;&quot;&gt;Which?&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	This is just guideline.&lt;/p&gt;


&lt;p&gt;
	People who wants to keep database smaller should choose disk.
&lt;br&gt;
	People who wants to make everyday backup only database should choose database.&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;&lt;span style=&quot;font-size:14px;&quot;&gt;Safety?&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	Because Q2A get from file system if data don't exist in database, even if you change destination, it is OK.&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;&lt;span style=&quot;font-size:14px;&quot;&gt;Last: necessary inspection&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	I don't yet know whether image access performance is improved&amp;nbsp;by disk mode.&lt;/p&gt;


&lt;p&gt;
	I'm glad if helpful to someone.&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/24390/tips-upload-file-management-with-v1-6</guid>
<pubDate>Fri, 07 Jun 2013 01:32:37 +0000</pubDate>
</item>
<item>
<title>My hope about qa_db_blob_read() at 1.6dev</title>
<link>https://www.question2answer.org/qa/23903/my-hope-about-qa_db_blob_read-at-1-6dev</link>
<description>

&lt;p&gt;
	I try to use qa1.6-0512.
&lt;br&gt;
	
&lt;br&gt;
	qa_db_blob_read() in qa-include/qa-db-blobs.php
&lt;br&gt;
	
&lt;br&gt;
	If QA_BLOBS_DIRECTORY is defined, I hope to get contents by calling file_get_contents() at&amp;nbsp;&lt;span style=&quot;color: rgb(51, 51, 51); font-family: Helvetica, Arial, Sens-serif; font-size: 14px; line-height: 21px;&quot;&gt;qa_db_blob_read()&lt;/span&gt;. At new version, since file_get_contents() called at qa_read_blob() in qa-include/qa-app-blobs.php, Core is no problem. But, back compatibility cannot be maintained.&lt;/p&gt;


&lt;p&gt;
	Please, please, consider users / plugins of using low level function.
&lt;br&gt;
	
&lt;br&gt;
	Best regards.&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/23903/my-hope-about-qa_db_blob_read-at-1-6dev</guid>
<pubDate>Fri, 17 May 2013 03:40:06 +0000</pubDate>
</item>
<item>
<title>About PNG image created in qa_blob table</title>
<link>https://www.question2answer.org/qa/23576/about-png-image-created-in-qa_blob-table</link>
<description>I would like to process rounded corners avatar image(Alfa-channel PNG). The PNG registered into qa_blob table is displayed by JPEG. Is it difficult to display according to PNG format?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/23576/about-png-image-created-in-qa_blob-table</guid>
<pubDate>Wed, 01 May 2013 04:51:15 +0000</pubDate>
</item>
<item>
<title>How to use q2a-embed plugin (NoahY) to embed q2a-uploaded image with blobid?</title>
<link>https://www.question2answer.org/qa/17223/how-use-embed-plugin-noahy-embed-uploaded-image-with-blobid</link>
<description>

&lt;p&gt;
	sometimes it happens that a user uploads an image and another user wants to use this image in his new post.&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;Problem:&lt;/strong&gt; He has to upload the image again to put it into his post.&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	The &lt;a href=&quot;https://github.com/NoahY/q2a-embed&quot; rel=&quot;nofollow&quot;&gt;embed plugin of NoahY&lt;/a&gt; considers (png|jpg|jpeg|gif|bmp) -&amp;gt; however, the URL of the uploaded image in q2a looks like that:&lt;/p&gt;


&lt;p&gt;
	http://www.gute-mathe-fragen.de/&lt;strong&gt;?qa=blob&amp;amp;qa_blobid=13189400781078488791&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	Can somebody tell me how I should change the &lt;strong&gt;qa-embed-layer.php&lt;/strong&gt; of the embed plugin to achieve parsing this blob as an image as well?&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;Line 52 of qa-embed-layer.php:&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;color:#0000ff;&quot;&gt;'image'=&amp;gt;array('(https*:\/\/[-\%_\/.a-zA-Z0-9]+\.(png|jpg|jpeg|gif|bmp))[^&amp;lt; ]*','&amp;lt;img src=&quot;$1&quot; style=&quot;max-width:'.$w2.'px;max-height:'.$h2.'px&quot; /&amp;gt;','img'),&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	what should be the new regex??&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	Note 1: All my uploads are images! So every blobid is an image.
&lt;br&gt;
	Note 2: I &lt;a href=&quot;http://www.question2answer.org/qa/14183/tweaking-ckeditor-allow-external-images-allow-image-uploads&quot; rel=&quot;nofollow&quot;&gt;changed the CKEditor&lt;/a&gt; - so there is no URL field for images anymore.&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/17223/how-use-embed-plugin-noahy-embed-uploaded-image-with-blobid</guid>
<pubDate>Thu, 16 Aug 2012 07:12:26 +0000</pubDate>
</item>
<item>
<title>Modifying qa_db_blob_create() ?</title>
<link>https://www.question2answer.org/qa/15075/modifying-qa_db_blob_create</link>
<description>

&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;div&gt;
	Does somebody know how to modify the function qa_db_blob_create() in qa-db-blobs.php that way that it stores the original image under same blobid name with imageextension as well to a folder ?&amp;nbsp;(Received from qa-wysiwig-upload.php line 110 )&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	If at least that is possible, one can get hands on that image through the id and use any tool to modify it.&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	That would help as long there is no complete plugin to store images in the filesystem or plugin for advanced image handling and as it still would be as well in the database there wouldnt be problems to upgrade once a plugin is available.&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	Thanks in any case...&lt;/div&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/15075/modifying-qa_db_blob_create</guid>
<pubDate>Wed, 16 May 2012 20:38:19 +0000</pubDate>
</item>
<item>
<title>Does anybody know here how to store a blob image as normal image ?</title>
<link>https://www.question2answer.org/qa/15070/does-anybody-know-here-how-to-store-blob-image-as-normal-image</link>
<description>I am still trying to get thumbnails or resized images to avoid very slow loadingtimes for firt time visitors of my pages.&lt;br /&gt;
&lt;br /&gt;
Timthumb, phpthumb, slir all do a good job but not with blobimages as source !&lt;br /&gt;
&lt;br /&gt;
Any hint is welcome.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/15070/does-anybody-know-here-how-to-store-blob-image-as-normal-image</guid>
<pubDate>Wed, 16 May 2012 16:46:15 +0000</pubDate>
</item>
<item>
<title>How to remove unused images from database (blob)?</title>
<link>https://www.question2answer.org/qa/14800/how-to-remove-unused-images-from-database-blob</link>
<description>How to remove unused images from database (blob)? To save space in database and keep up performance.&lt;br /&gt;
&lt;br /&gt;
Is there any mysql query that can do this?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/14800/how-to-remove-unused-images-from-database-blob</guid>
<pubDate>Tue, 08 May 2012 13:24:20 +0000</pubDate>
</item>
</channel>
</rss>