Questions tagged [assets]
1. Non-code files packed with an application (example, data or media files). 2. From a security point of view - any data or resource that should be (or can be) protected.
3,404
questions
0
votes
0
answers
15
views
How to import static file in Electron preload script?
My project's build directory structure:
build
├──preload
│ └── preload.js (electron preload)
│
├──index.js (electron entry point)
├──index.html (react html)
├──renderer.js (react entry point)...
0
votes
0
answers
31
views
Android - SearchView filtering a JSON in Assets folder displayed in a RecyclerView
I would need help to figure out how to filter search results through a JSON file placed in the assets folder, displaying it in a RecyclerView.
I've previously successfully achieved it by using a JSON ...
0
votes
0
answers
16
views
improve compile time with Large Asset Catalog?
I have an app that is a compilation of several apps. My asset catalog has 1000+ images.
Does anyone know how to speed up compile times?
I have my build settings set to incremental and have the asset ...
0
votes
1
answer
27
views
Angular: How to set baseHref for assets in development when using SSR
In production we are setting the base href with:
ng build --base-href /app/
This works well. Especially our assets are also served at /app/assets/ as expected.
I cannot achieve the same effect in ...
-1
votes
0
answers
19
views
Pdf application in android studio
I am quite new in the world of developing,
I want to create pdf application by using assets library
, Without using GitHub library
Is there any way show pdf files in an application
In Java coding.
...
0
votes
0
answers
27
views
Embeded assets will not load and returns a status code 404
The code below is a simple http server written in GO. When I run the code, I expect the server to return the embedded assets from the assets folder, but it only returns a list of files. When I try to ...
0
votes
0
answers
45
views
Why does Laravel9/Vite application not find the assets files after build
Having built the assets,
build
vite build
vite v3.0.3 building for production...
✓ 64 modules transformed.
public/build/manifest.json 0.28 KiB
public/build/assets/app.45719a2b.css 189....
0
votes
1
answer
35
views
Xamarin.iOS - Linker behavior: Link All - Assets images removed
Has anyone experienced the images loaded in the Assets Catalog of a Xamarin.iOS project being removed when using the Linker behavior: Link All?
I have the following solution structure (simplified):
...
0
votes
1
answer
22
views
Load dynamic html content from asset folder file in angular application
In my angular application I want to load some html content from a file located in my assets folder.
The path of the folder will be dynamic based on the value selected by the user,
For example:
If the ...
0
votes
0
answers
12
views
Fetching assests from cloud into Android app
I have an android app where I want to store images and lottie files in cloud, fetch them into local storage, and then render them from local storage and thus effectively reducing the app download size....
0
votes
0
answers
13
views
Unity 2D : Placing a tile from an asset/Tile Palette to a Tile Map with a script
I am trying to place Tiles by using a script and need to retrieve them from either a tile palette or directly a tile in my asset folder. I can't assign them manually by using a public TileBase because ...
0
votes
0
answers
34
views
Moved swiftUI view into UIKit project but assets no longer appear in Preview
I have an existing app built with UIKit and wanted to integrate a SwiftUI view into it. To begin, I built a separate SwiftUI app in my workspace and after I had the basics working I added the code ...
-1
votes
0
answers
14
views
Secure assets from browser network transfer
We try to make a player based on three.js.
And the model(gltf/glb format) made by our team will be loaded.
For now, we store & serve the assets from Amazon S3.
But the problem is the assets are ...
0
votes
1
answer
16
views
How to reference another file (i.e. png or jpg) in another directory in Python3? [duplicate]
I'm using VS Code to program in Python. Instead of copying and pasting an image (or any other type of file) from one directory to the same directory my .py file is located in, I want to reference that ...
0
votes
0
answers
38
views
How to load assets from folders contained in Resources in a built project - Unity
I have in my Resources folder other folders that each of these contains one or more sprite sheets:
In order to use these sprites, I use a method that reads this folders structure and saves its ...
0
votes
1
answer
71
views
Failed to launch AssetCatalogSimulatorAgent via CoreSimulator spawn (Xcode)
I had this bug that appeared on all my xCode projects and I don't understand how to fix it
My suggestion is that I had installed the beta version of xCode 14 and I re-opened my projects on this one, I ...
0
votes
0
answers
22
views
How can I download and cache an AssetBundle from a Table of Contents, then instantiate based on name?
My goal is to be able to update the characters/ui in my iOS/Android Unity game without changing any Scripts.
I want to download each character's model via AssetBundles.
I have a TOC (Table of Contents)...
0
votes
1
answer
44
views
Flutter asset folder path
I want to build an app with multiple flavors, which work very well. But now I have the requirement to include static json files into my preview app, because sometime the backend differs in development ...
0
votes
1
answer
43
views
An svg images turn upside-down after adding to assets Swift xcode
So, I have an image, when I open it - it looks fine
But when I add it to the project it becomes upside down
I've tried adding to the project an upside-down picture (so it rotates again and becomes ...
0
votes
1
answer
72
views
Python in Maya, syntax error for UV script
I'm trying to assign root UVs to an alembic Maya XGen file, so that I can give the XGen fur the colours of the mesh underneath in Unreal Engine. I have a jaguar mesh with UVs assigned, and am trying ...
1
vote
1
answer
48
views
How to read very long file from asset bundle as String?
I want to read the entire content of my JSON file (2500 lines) located in assets.
I tried:
import 'package:flutter/services.dart';
rootBundle.loadString('assets/json/quotes.json').then((value) {print(...
0
votes
2
answers
87
views
Blazor Maui App is Not Displaying Images that are in a Razor Class Library project
The images are referenced in a razor component that's defined in a Razor Class Library in the "wwwroot/Images" folder.
I've included a project reference to this Razor Class Library in my ...
0
votes
0
answers
23
views
Rails 7: Fuzzy FIle Matching for public files/images?
Scenario: I'm uploading images to Rails ad hoc. I have the files linked from the database using a external ID # field (the images need to be attributed to the original artist, and this is the easiest ...
1
vote
1
answer
29
views
Can't copy image to assets folder on real device flutter
When I select an image from gallery on iPhone, i want to copy it into the assets/images folder and display it afterwards.
On Simulator everything works fine. But on real device I get the following ...
1
vote
1
answer
38
views
Why is unity compressing my button image so much?
I want to make a simple button in unity with an image. The image is a 800x800 png and looks fine when i open it in any image viewer. When i place the image in a asset folder and add it to my button ...
0
votes
0
answers
32
views
Image from storyboard not loaded in testFlight
I'm working on an SDK Which is being used by several other teams for their product in our company.
When they test their product in simulator and also on real devices, everything looks fine. But when ...
0
votes
0
answers
47
views
How to configure Svelte Kit to request assests from a CDN in production?
I deployed my Svelte Kit app on K8s and noticed that things like Favicons weren't loading. After some investigation, it turns out that Nginx Ingress Controller is not designed to serve those files:
...
0
votes
0
answers
70
views
How to Pass react native assets file path to native modules ios/android
i have some static files in my react native assets folder, i want to pass those files to native modules Android/iOS, is there any way to pass file paths to native modules
Actually i downloading files ...
0
votes
1
answer
47
views
rootBundle.loadString does not read the whole text in file
I have a file named A# in the assets folder.
When i read its content with rootBundle.loadString not all the data is read.
This is the files content
Lorem ipsum dolor sit amet, consetetur sadipscing ...
0
votes
0
answers
120
views
How to load assets from single-spa microfrontend's assets in styles.scss?
I've recently started migrating some Angular projects to single-spa, and I've ran into this issue.
In the child projects (microfrontends, Angular 12), assets requested in styles.scss will only ask for ...
-2
votes
1
answer
33
views
PRODUCT_NOT_ENABLED issue in Plaid API call
We try to run the "link/token/create" API call, but it throws the PRODUCT_NOT_ENABLED error
We use the sandbox account testing details.
Below are our error response details
{\n
"...
0
votes
1
answer
18
views
Can the Android Gradle aapt tool ignore folders?
android {
aaptOptions {
//unicorn_emoji is folder, in assets/unicorn_emoji
ignoreAssetsPattern "!/unicorn_emoji"//does not work
ignoreAssetsPattern "**/...
0
votes
2
answers
80
views
Using custom assets as icons in Flutter
I want to use custom assets instead of standard material icons for my Flutter app but I can't seem to get it working.
After searching google for a solution I found the ImageIcon widget that's supposed ...
0
votes
0
answers
11
views
I cant load asset bundle into my vuforia image target app
i been trying to make an app using Vuforia Image targets. If i put the prefab model into the image target as child everything seems to work ok, but when i try to load the same object via asset bundle ...
0
votes
0
answers
19
views
Play framework routes: How to redirect from another location
Hello I am a newby when it comes to the play framework (routes), so bear with me please.
I have a two website on a server that use a same css file.
However, the challenge is that the website have a ...
0
votes
1
answer
35
views
How to change the structure of asset locations in flame?
I'd like to change where the default structure of assets that flame uses. The documentation says
If you want to change this structure, this is possible by using the prefix parameter and creating your ...
0
votes
0
answers
36
views
FlutterError (Unable to load asset: assets/audio/assets/Sound3.mp3)
I want to play an audio as the app background music(without button click/autoplay). The code seen like no problem, but cant display.Did I do anything wrong with the code?
import 'package:flutter/...
0
votes
1
answer
38
views
RESOLVE - Problem when using assets from database in symfony
I have a little problem when I use an asset.
error capture
In my database I have the link of videos which are stocked in my server and for example one of them is : Commande/test/a/2362022a.mp4, the ...
0
votes
0
answers
15
views
Assets not working in rails containerised app
I am trying to setup ruby on rails application from docker everything is fine there is only one issue assets not load in application in docker. Please tell me how to resolve this issue.
Asset compile ...
1
vote
0
answers
42
views
Yarn executable was not detected in the system
Rails with docker gives me error when asset precompiled.
i am trying to setup rails application with docker. everything is fine but asset precompiled issue raise during build image.
Yarn executable ...
0
votes
1
answer
27
views
How to load md link which is stored inside a md link--Flutter
I am currently trying to show md file using MarkDown as a package from flutter_markdown and I find this source https://stackoverflow.com/a/63567194/13240914
It is stated that to load md file from ...
0
votes
0
answers
36
views
Images not displaying from Assets
I have a xamarin.ios (Using VS mac) project that I'm trying to add images to. I have 5 images and only two of the are loading. I have followed https://docs.microsoft.com/en-us/xamarin/ios/app-...
0
votes
0
answers
36
views
How to convert/merge unity files into *.unitypackage
I have an interesting problem. I have unity assets files in this kind of format (This is not *.unitypackage format):
When I'm trying to add it to my project it is ending up like this:
This should be ...
0
votes
0
answers
23
views
swift PHAsset requestContentEditingInput fullSizeImageURL is empty
I try to get fullSizeImageURL and then calculate md5 of file:
var assetUrl = syncUrl(asset: asset)
let assetMD5 = md5File(url: assetUrl)
To get url I use requestContentEditingInput. The problem is ...
0
votes
1
answer
58
views
Show loading screen when fetching images
Let's say I have images stored on AWS bucket and react app with router (7 pages). Every page have some images pointed to AWS specific link. I tried to preload them with some third party library (like ...
1
vote
1
answer
207
views
How to dynamically point to a static asset leveraging the path lookup in Vite/Vue3? Using Typescript paths in dynamic URLs to assets
It is my understanding that as per the docs, following is the idiomatic way to dynamically generate an url to a static asset with Vite/Vue3:
URL(`../../assets/${name}.png`, import.meta.url).href
...
1
vote
0
answers
371
views
how to properly set up path for assets in esbuild
How should I configure path for assets in esbuild? My current config looks like so:
const esbuild = require("esbuild");
esbuild.build({
bundle: true,
entryPoints: ["src/index.tsx&...
0
votes
0
answers
18
views
Dash symbolic link to access external assets
I am using Dash to create an app. As in the templated structure, there is an "assets" folder that can contain CSS, logos etc..
Now I want to add some other assets as well that are stored ...
0
votes
0
answers
19
views
Libgdx assets with aide
I've recently started using libgx with aide to make a game on my android phone, due to lack of access to a computer at the moment, but I am confused where to put the assets, particularly I'm trying to ...
1
vote
1
answer
132
views
Trying to retrieve localUri from assets in Expo MediaLibrary, why does this return null?
I have two questions here, an Expo MediaLibrary question, and a linked Javascript/scoping question.
I have a ReactNative Expo app that loads recent images from a users media library. For this I need ...