<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Error in CAP with image in data model and persisten sqlite database in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/error-in-cap-with-image-in-data-model-and-persisten-sqlite-database/qaa-p/12813041#M4811503</link>
    <description>&lt;P&gt;Helllo   &lt;SPAN class="mention-scrubbed"&gt;mariya.yordanova02&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;thanks for your reply. &lt;/P&gt;&lt;P&gt;I tried to create an example with the bookshop but unfortunately everything is working fine with it.&lt;/P&gt;&lt;P&gt;There is also an image (LargeBinary @Core.MediaType : 'image/png') in the model in the Books entity and I set an FIORI app on top. No errors when using sqlite in memory and also no errors when using sqlite persistent.&lt;/P&gt;&lt;P&gt;In my app the FIORI app with the image shown on the object page works fine when using sqlite with in memory option but the FIORI app crashes when using the persistent option.&lt;/P&gt;&lt;P&gt;I compared the the two apps but could'nt find any significant difference until now.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jens Borau&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jul 2023 05:24:20 GMT</pubDate>
    <dc:creator>jens_borau</dc:creator>
    <dc:date>2023-07-28T05:24:20Z</dc:date>
    <item>
      <title>Error in CAP with image in data model and persisten sqlite database</title>
      <link>https://community.sap.com/t5/technology-q-a/error-in-cap-with-image-in-data-model-and-persisten-sqlite-database/qaq-p/12813039</link>
      <description>&lt;P&gt;For CAP working on BAS I created a data model with a field "image" with annotation "@Core.MediaType: 'image/png'" in one entity. On top is a FIORI Elements app. Data is provided via csv file and field image is left empty.&lt;/P&gt;
  &lt;P&gt;When using the sqlite in memory option in the development environment everything is fine.&lt;/P&gt;
  &lt;P&gt;The image is tried to be loaded by the FIORI app via &lt;/P&gt;
  &lt;P&gt;GET /maint-articles/Articles(ID=017b04c0-7f5c-420e-85d1-77f7f8a6e614,IsActiveEntity=true)/image?xcache=16899376&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;No problem that there is no content for the image in this case.&lt;/P&gt;
  &lt;P&gt;But when i use the sqlite persisten db option with&lt;/P&gt;
  &lt;P&gt;cds deploy --to sqlite:db/my-bookshop.db&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;I get an error on the CAP (node.js) server when the FIORI Elements app tries to load the image.&lt;/P&gt;
  &lt;P&gt;Process exited with code 7&lt;/P&gt;
  &lt;P&gt;Uncaught RangeError RangeError: Maximum call stack size exceeded&lt;/P&gt;
  &lt;P&gt; at onStream (/home/user/projects/mm-srm-catmaint/node_modules/@cap-js/sqlite/lib/db/sqlite/SQLiteService.js:145:17)&lt;/P&gt;
  &lt;P&gt;Any ideas why this is handled different depending on using sqlite in memory vs. persistent?&lt;/P&gt;
  &lt;P&gt;How can I avoid this error? Don't know hot this would look like after deployment.&lt;/P&gt;
  &lt;P&gt;In general it should be possible to leave an image field with "@Core.MediaType: 'image/png'" empty in the database.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 11:17:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-in-cap-with-image-in-data-model-and-persisten-sqlite-database/qaq-p/12813039</guid>
      <dc:creator>jens_borau</dc:creator>
      <dc:date>2023-07-21T11:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error in CAP with image in data model and persisten sqlite database</title>
      <link>https://community.sap.com/t5/technology-q-a/error-in-cap-with-image-in-data-model-and-persisten-sqlite-database/qaa-p/12813040#M4811502</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;jens.borau&lt;/SPAN&gt; ,&lt;/P&gt;&lt;P&gt;Could you please provide an example (preferably with bookshop) to reproduce the issue?&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Maria&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 09:21:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-in-cap-with-image-in-data-model-and-persisten-sqlite-database/qaa-p/12813040#M4811502</guid>
      <dc:creator>mariya_yordanova</dc:creator>
      <dc:date>2023-07-27T09:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error in CAP with image in data model and persisten sqlite database</title>
      <link>https://community.sap.com/t5/technology-q-a/error-in-cap-with-image-in-data-model-and-persisten-sqlite-database/qaa-p/12813041#M4811503</link>
      <description>&lt;P&gt;Helllo   &lt;SPAN class="mention-scrubbed"&gt;mariya.yordanova02&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;thanks for your reply. &lt;/P&gt;&lt;P&gt;I tried to create an example with the bookshop but unfortunately everything is working fine with it.&lt;/P&gt;&lt;P&gt;There is also an image (LargeBinary @Core.MediaType : 'image/png') in the model in the Books entity and I set an FIORI app on top. No errors when using sqlite in memory and also no errors when using sqlite persistent.&lt;/P&gt;&lt;P&gt;In my app the FIORI app with the image shown on the object page works fine when using sqlite with in memory option but the FIORI app crashes when using the persistent option.&lt;/P&gt;&lt;P&gt;I compared the the two apps but could'nt find any significant difference until now.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jens Borau&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 05:24:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-in-cap-with-image-in-data-model-and-persisten-sqlite-database/qaa-p/12813041#M4811503</guid>
      <dc:creator>jens_borau</dc:creator>
      <dc:date>2023-07-28T05:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error in CAP with image in data model and persisten sqlite database</title>
      <link>https://community.sap.com/t5/technology-q-a/error-in-cap-with-image-in-data-model-and-persisten-sqlite-database/qaa-p/12813042#M4811504</link>
      <description>&lt;P&gt;Update of @cap-js/sqlite to 1.0.1 solved the problem&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 06:05:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-in-cap-with-image-in-data-model-and-persisten-sqlite-database/qaa-p/12813042#M4811504</guid>
      <dc:creator>jens_borau</dc:creator>
      <dc:date>2023-07-28T06:05:21Z</dc:date>
    </item>
  </channel>
</rss>

