Django mongodb connection showing empty file - django-mongodb-engine

included all required codes and showing empty string in the database after inserting data
enter image description here

Related

Copy Data from REST API to Azure SQL DB with Data Factory

Beginner here, I want to copy some stock data from a REST API into my Azure SQL database. I've set up a pipeline with a Look-up activity to get the needed strings (with stock symbols) and use them in For Each to call the API and copy the data to SQL database.
Problem: the copy activity works for some stock symbols, but not for all.
My Look-Up concatenates the stock symbols into a comma-separated string, for concatenating the string with the API call URL.
Here is the concatenate statement and the final output of the pipeline:
SELECT STRING_AGG(Symbol, ',') AS Symbollist
FROM [dbo].[Tab_Symbols]
GROUP BY GroupOfTen;
green symbols --> appear in SQL database
red symbols --> do not appear in SQL database
Why are the first and last symbols always missing?
I've tested the API call with the strings and I receive all stock symbols data in JSON format as it should. Maybe the problems is my mapping or sink SQL table?
Thank you! Fabian
Here are screenshots of my copy activity:
REST dataset settings and dynamic URL string:
For Each settings:
Source settings and use of dynamic string (use for each item):
Sink settings:
Mapping:
I solved it. In the source settings of my copy activity the column reference '.Symbollist' of the lookup-output was missing.
#item().Symbollist

How to add image to table cell and read the image's url value from database field in ssrs?

I am working on a ssrs report. I have a table and it is linked to a database query.
Query returns a field which includes image urls of every item.
For example:
ID Name URL
1 Line1 https://www.servername.com/images/a.jpg
2 Line2 https://www.servername.com/images/b.jpg
Then i add an image from toolbox to table's last cell. Then from Image Properties, i choose database, then i choose database field and MIME type then i click OK.
After i run the report, i see crosses instead of image. Why is it happening? How can i show the images properly?
Screenshot
Thanks.
when you set the source to database you are saying that the image is stored in the database. What you actually have stored is a link, so you need to use image source external and add the data field to the expression for the "use this image".
Select External - then in the dropdown for the "Use this Image" select the data field that has the url in it.
At run time it will pull the url from the database and show the image.
Regards,

How to Retrieve BLOB Data In Oracle APEX

I want to retrieve BLOB data from database table to Display Image Item called P4_COMPANY_LOGO
I have selected the source for Display image item as SQL Query (Return Single Value):
select company_logo from companies where company_id=10;
But when I run the page it immediately return this Error:
P4_COMPANY_LOGO has to have a valid BLOB column as source.
Help Please!..
Maybe you don't have the item properties quite right. This would work:

Why when I extract from my database it automatically adds new lines?

For example, my database would have an entry that says "This is a title". In server management studio, it would present it as that one line. Whenever I try to export or copy and paste that result into excel, it turns into
This
Is
A
Title
in 4 different cells
Instead of
This is a title
in one cell
Why is this happening and do I fix it so I can just have the data in one cell when I export?
After connecting to the database using python and examining the data in text, it seems as though the data had the new line escape character,\n,'embedded in them. This is what resulted in excel displaying them as new lines.

ORA 00932: expected NUMBER got BLOB error when trying to view table content

I wrote a servlet program to upload an image to Oracle table. I am using Oracle 10g version.
I created the table using
create table insertimage( image BLOB);
The table was created successfully. My servlet shows image uploaded successfully. Even when I delete using
delete from insertimage;
it shows successful row deletion.
But when I try to see the table content using
select * from insertimage;
it gives me
ORA-00932: inconsistent datatypes: expected NUMBER got BLOB error.
So how can I check if the image has been successfully uploaded or not directly in the Oracle table?
There are lot of third party IDEs which you can use - a good free one would be Oracle's own SQL Developer
Double click on the table from the object tree. On the "Data" tab, click the "..." button with the BLOB column & then click the "View as Image" checkbox